import java.util.Scanner;

public class test_5_1 {
    public static void main(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        int count = 0;
        for (int i = 0; i < n; i++) {
            num[i] = input.nextInt();
            if (num[i] % 2 == 1){
                count++;
            }else{
                count = 0;
            }
            if (count == 3){
                System.out.print(true);
                break;
            }
        }
        if (count != 3){
            System.out.print(false);
        }
    }
    public static void main4(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        int ret = 0;
        for (int i = 0; i < n; i++) {
            num[i] = input.nextInt();
            if (i == 0){
                ret = num[0];
            }else{
                ret ^= num[i];
            }
        }
        System.out.print(ret);
    }
    public static void main3(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        for (int i = 0; i < n; i++){
            num[i] = input.nextInt();
        }
        int a = 0;
        for (int i = 0; i < n - 2; i++){
            if (num[i] % 2 == 1){
                int b = 0;
                for (int j = i + 1; j < i + 3; j++){
                    if (num[j] % 2 == 0){
                        b = 1;
                        break;
                    }
                }
                if (b == 0){
                    System.out.print(true);
                    a = 1;
                    break;
                }
            }
        }
        if (a == 0){
            System.out.print(false);
        }
    }
    public static void main2(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        for (int i = 0; i < n; i++){
            num[i] = input.nextInt();
        }
        for (int i = 0; i < n - 1; i++){
            for (int j = 0; j < n - 1 - i; j++){
                if (num[j] > num[j + 1]){
                    int tem = num[j];
                    num[j] = num[j + 1];
                    num[j + 1] = tem;
                }
            }
        }
        int count = 0;
        int a = num[0];
        for (int i = 0; i < n; i++){
            if (a == num[i]){
                count++;
            }else{
                if (count > (n / 2)){
                    System.out.print(num[i - 1] + "");
                }
                count = 1;
                a = num[i];
            }
        }
        if (count > (n / 2)){
            System.out.print(num[n - 1] + "");
        }
    }
    public static void main1(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        for (int i = 0; i < n; i++){
            num[i] = input.nextInt();
        }
        for (int i = 0; i < n - 1; i++){
            for (int j = 0; j < n - 1 - i; j++){
                if (num[j] > num[j + 1]){
                    int tem = num[j];
                    num[j] = num[j + 1];
                    num[j + 1] = tem;
                }
            }
        }
        for (int i = 0; i < n; i++){
            int a = 0;
            for (int j = i + 1; j < n; j++){
                if (num[i] == num[j]){
                    a = 1;
                    i++;
                    break;
                }
            }
            if (a == 0){
                System.out.print(num[i] + " ");
            }
        }
    }
}
